<h2>Index</h2>

<p>
    <?php echo anchor('storemanager/create','Create New')?>
</p>
<table>
    <tr>
        <th>
            Album Id
        </th>
        <th>
            Genre
        </th>
        <th>
            Artist
        </th>
        <th>
            Title
        </th>
        <th>
            Price
        </th>
        <th></th>
    </tr>
    <?php foreach ($album as $item):?>
    	<tr>
    		<td><?php echo $item->AlbumId?></td>    	
    		<td><?php echo $item->Genre?></td>
    		<td><?php echo $item->Artist?></td>
    		<td><?php echo $item->Title?></td>
    		<td><?php echo $item->Price?></td>
    		<td>
    			<?php echo anchor('storemanager/edit/'.$item->AlbumId,'Edit')?>|  			
    			<?php echo anchor('storemanager/details/'.$item->AlbumId,'Details')?>|
    			<?php echo anchor('storemanager/delete/'.$item->AlbumId,'Delete')?> 			
    		</td>
    	</tr>
    <?php endforeach;?>
</table>